<div class="eui-tabs" data-options="fit:true,tabWidth:90">
	<div title="机构信息" style="padding:10px" id="orginfotab">
		<div class="eui-layout" data-options="fit:true">
			<div data-options="region:'center',border:true,href:'${path}/eframe/org/organization/org!updateView.action?id=${orgid}'" style="padding:8px"></div>
			<div data-options="region:'south',border:true,height:'38px'" style="text-align:center;padding-top:5px">
				<a class="eui-linkbutton savebtn" data-options="iconCls:'icon-ok'">保存</a>
			</div>
		</div>
	</div>
	<div title="子机构列表" style="padding:10px" data-options="href:'${path}/eframe/org/organization/sub-list.ftl?orgid=${orgid}&orglevel=${orglevel}'"></div>
	<div title="岗位列表" style="padding:10px" data-options="href:'${path}/eframe/org/position/list.ftl?orgid=${orgid}&posilevel=1'"></div>
	<div title="员工列表" style="padding:10px" data-options="href:'${path}/eframe/org/employee/list-fromorg.ftl?orgid=${orgid}'"></div>
	<div title="权限管理" style="padding:10px" data-options="href:'${path}/eframe/org/organization/auth.ftl?orgid=${orgid}'"></div>
</div>
<script>
	$("#orginfotab").find(".savebtn").click(function(){
		var submitform = $("#orginfotab").find(".submitform");
		submitform.form({
			url: submitform.attr("action"),
			success:function(data) {
				var node = $("#tree").tree('find','${orgid}');
				$("#tree").tree('select',node.target);
				reloadSelectedParent();
			}
		});
		if(submitform.form("validate")) {
			submitform.submit();
		}
	});
</script>